package com.zhanghe.mall.service.vo;

import com.zhanghe.mall.pojo.ClassificationAttribute;
import java.util.List;
import org.springframework.beans.BeanUtils;

public class ClassificationAttributeVO {

  public String name;

  public Integer sort;

  public Integer type;

  public List<AttributePropertyVO> systemAttributeProperty;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public List<AttributePropertyVO> getSystemAttributeProperty() {
    return systemAttributeProperty;
  }

  public void setSystemAttributeProperty(
      List<AttributePropertyVO> systemAttributeProperty) {
    this.systemAttributeProperty = systemAttributeProperty;
  }

  public static ClassificationAttributeVO transform(ClassificationAttribute classificationAttribute){
    ClassificationAttributeVO vo = new ClassificationAttributeVO();
    BeanUtils.copyProperties(classificationAttribute,vo);
    return vo;
  }

}
